# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         demo5.03
# Description:
# Author:       98745
# Date:         2019/2/26
#-------------------------------------------------------------------------------

formatstr1='pi是圆周率，它的值是%.4f(保留小数点后%d位)'
from math import  pi
values=(pi,4)
print(formatstr1 % values)
formatstr2='这件事的成功率是%data%%,如果有%s参与的话，成功率会提升至%data%%'
values2=(56,'john',70)
print(formatstr2 % values2)
values3=(66,'mike')
print(formatstr2 % values3)